package com.kuang.snake.service;

import javax.swing.*;
import java.net.URL;

public class Data {
    //头部图片 URL
    public static URL headurl = Data.class.getResource("/static/header.jpg");
    public static ImageIcon header = new ImageIcon(headurl);

    //贪吃蛇头部方向
    public static URL upurl = Data.class.getResource("/static/up.png");
    public static URL downurl = Data.class.getResource("/static/down.png");
    public static URL lefturl = Data.class.getResource("/static/left.png");
    public static URL righturl = Data.class.getResource("/static/right.png");
    public static URL bodyurl = Data.class.getResource("/static/body.png");
    public static URL foodurl = Data.class.getResource("/static/food.png");


    public static ImageIcon up = new ImageIcon(upurl);
    public static ImageIcon down = new ImageIcon(downurl);
    public static ImageIcon left = new ImageIcon(lefturl);
    public static ImageIcon right = new ImageIcon(righturl);
    public static ImageIcon body = new ImageIcon(bodyurl);
    public static ImageIcon food = new ImageIcon(foodurl);
}
